package com.liu.mapper;

import com.liu.pojo.Role;
import com.liu.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: 刘浩然
 * @Date: 2020/3/24 21:43
 */
@Mapper
public interface UserMapper {
    User loadUserByUsername(String username);//通过用户名加载用户
    List<Role> getUserRoleByUid(Integer id);//通过用户的id来加载用户的角色
}
